package com.xgggh.redpack.ui.my.viewbinder;


import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;

import com.xgggh.redpack.R;
import com.xgggh.redpack.base.viewbinder.BaseItemViewBinder;
import com.xgggh.redpack.base.viewbinder.BinderViewHolder;
import com.xgggh.redpack.databinding.ContentMyCustomItemBinding;
import com.xgggh.redpack.domain.custom.CustomItem;
//一个icon，一个title
//再最上面还可以加载一句话，slogan
public class MyCustomViewBinder extends BaseItemViewBinder<CustomItem> {
    @NonNull
    @Override
    public int getResId() {
        return R.layout.content_my_custom_item;
    }

    @Override
    protected void onBindViewHolder(@NonNull BinderViewHolder holder, @NonNull CustomItem item) {
        super.onBindViewHolder(holder, item);
        ContentMyCustomItemBinding _binding= DataBindingUtil.getBinding(holder.itemView);
        _binding.setCustomItem(item);
    }
}
